Python + VSCode: “Go to Definition” Doesn’t Work? |
您所在的位置:网站首页 › definition python › Python + VSCode: “Go to Definition” Doesn’t Work? |
Make sure that you have Microsoft’s Python extension installed. If you need more than one paths, simply create a .env file in project root path, and add extra paths in, separated by :, as such: PYTHONPATH=libs/python:/another/pythonVSCode will know to look for definitions under these paths. If it still doesn’t work, or doesn’t work all the time, it’s very likely that one of the other plugins that you have is interfering with the Python one. To check, use Command + Shift + P to open the prompt and run the command: > Extensions: Open Extensions FolderMove all the extensions there to another temporary place, re-install the Python extension, and see if things start working now. If it does work now, add them back in batch to find out the culprit. 馃榾 Also, for gigantic projects, try switching intellisense engine: ![]() ![]() |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |